<!--#include("_header.html")-->

<form action="./" method="get" class="boardListForm">
        <div class="tag_cloud">
            <dl id="tagList" class="open"><!-- [D] open or clse -->
                <dt><span>{$lang->tag}</span></dt>
                <dd>
                    <ul class="lst_tag">
                        <!--@foreach($total_tag_list as $val)-->
                        <li>
                            <!--@if($layout_info->mid)-->
                            <a href="{getUrl('','mid',$layout_info->mid,'search_target','tag','search_keyword',$val->tag)}">{htmlspecialchars($val->tag)}</a>
                            <!--@else-->
                            <a href="{getUrl('','mid',$mid,'search_target','tag','search_keyword',$val->tag)}">{htmlspecialchars($val->tag)}</a>
                            <!--@end-->
                        </li>
                        <!--@end-->
                    </ul>
                </dd>
            </dl>
            <script>
                jQuery(function($){
                    var isOpen = false;
                    var tagObj = $('#tagList');
                    var btnObj = $('.btn_toggle');

                    function changeTag(isToOpen)
                    {
                        if(!isToOpen) {
                            tagObj.toggleClass( 'close', true);
                            tagObj.toggleClass( 'open', false);

                            btnObj.toggleClass( 'close', true);
                            btnObj.toggleClass( 'open', false);
                       }
                       else
                       {
                            tagObj.toggleClass( 'close', false);
                            tagObj.toggleClass( 'open', true);

                            btnObj.toggleClass( 'open', true);
                            btnObj.toggleClass( 'close', false);
                       }
                    }

                    changeTag(isOpen);
                    btnObj.click(function(){
                        isOpen = isOpen ? false:true;
                        changeTag(isOpen);
                    });

                });
            </script>
            <span class="btn_toggle open"><!-- [D] open or clse -->
                <i class="arr"></i>
            </span>
        </div>
</form>

<!--@if($grant->view && $module_info->default_style != 'blog')-->
        <form class="srch_form" action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search" no-error-return-url="true">
            <!--@if($vid)-->
            <input type="hidden" name="vid" value="{$vid}" />
            <!--@end-->
            <input type="hidden" name="mid" value="{$mid}" />
            <input type="hidden" name="category" value="{$category}" />
			<input type="hidden" name="search_target" value="title_content" />

            <fieldset>
                <legend class="blind">Search</legend>
                    <select class="sel_tip_cg" name="category" cond="$category_list && $module_info->use_category">
                    	<option value="">{$lang->category}</option>
                    	<!--@foreach($category_list as $val)-->
                    	<option value="{$val->category_srl}" <!--@if($category==$val->category_srl)-->selected="selected"<!--@end-->>{str_repeat("&nbsp;&nbsp;",$val->depth)} {$val->title} <!--@if($val->document_count)-->({$val->document_count})<!--@end--></option>
                    	<!--@end-->
                    </select>
                    <span class="ipt_box"|cond="$category_list && $module_info->use_category" class="ipt_box_2"|cond="!($category_list && $module_info->use_category)"><input type="search" placeholder="Search"  name="search_keyword" value="{htmlspecialchars($search_keyword)}" id="ipt_srch_msg"></span>
                    <input type="submit" class="btn_sbmt" value="Search">
            </fieldset>
        </form>
<!--@end-->

<!--@if($oDocument->isExists() && $module_info->default_style != 'blog')-->
<div class="viewDocument">
    <!--#include("./view_document.html")-->
</div>
<!--@end-->

<!--@if($module_info->default_style == 'webzine')-->
    <!--#include("./_style.webzine.html")-->
<!--@elseif($module_info->default_style == 'gallery')-->
    <!--#include("./_style.gallery.html")-->
<!--@elseif($module_info->default_style == 'forum')-->
    <!--#include("./_style.forum.html")-->
<!--@elseif($module_info->default_style == 'blog')-->
    <!--#include("./_style.blog.html")-->
<!--@else-->
    <!--#include("./_style.list.html")-->
<!--@end-->
<div class="pagination">
    <ul>
        <li class="first">
            <a href="{getUrl('page',1,'document_srl','','division',$division,'last_division',$last_division)}">First</a>
        </li>
        <li class="prev">
            <!--@if($page>1)-->
            <a href="{getUrl('page',$page-1,'document_srl','','division',$division,'last_division',$last_division)}">Prev</a>
            <!--@else-->
            <a href="{getUrl('page',1,'document_srl','','division',$division,'last_division',$last_division)}">Prev</a>
            <!--@end-->
        </li>
        <!--@while($page_no = $page_navigation->getNextPage())-->
            <!--@if($page == $page_no)-->
                <li><strong>{$page_no}</strong></li>
            <!--@else-->
                <li><a href="{getUrl('page',$page_no,'document_srl','','division',$division,'last_division',$last_division)}">{$page_no}</a></li>
            <!--@end-->
        <!--@end-->
        <li class="next">
            <!--@if($page<$page_navigation->last_page)-->
            <a href="{getUrl('page',$page+1,'document_srl','','division',$division,'last_division',$last_division)}">Next</a>
            <!--@else-->
            <a href="{getUrl('page',$page_navigation->last_page,'document_srl','','division',$division,'last_division',$last_division)}">Next</a>
            <!--@end-->
        </li>
        <li class="end"><a href="{getUrl('page',$page_navigation->last_page,'document_srl','','division',$division,'last_division',$last_division)}">End</a></li>
    </ul>
</div>


<!--#include("_footer.html")-->
